package com.xuyoupeng.springlearn.bean.event;

import com.xuyoupeng.springframework.context.ApplicationListener;

import java.util.Date;

/**
 * @author xuyoupneg
 * @description TODO
 * @date 2024/3/30 17:53
 */
public class CustomEventListener implements ApplicationListener<CustomEvent> {
    @Override
    public void onApplicationEvent(CustomEvent event) {
        System.out.println("id:" + event.getId() + " message:" + event.getMessage() + " date:" + new Date());
    }
}
